package edu.sctu.zhoudie.mouth201505.day20150506;

/**
 * Created by user08 on 2015/5/6.
 */

import java.util.*;

public class MapDemo {
    public static void main(String[] args) {

        Map map = new HashMap();
        String[] strs = {

                "10001", "10002", "10001", "10003", "10008",
                "10010", "10005", "10002", "10007", "10015"

        };

        for (int i = 0; i < strs.length; i++) {
            map.put(String.valueOf(i), strs[i]);

        }

        Iterator key = map.keySet().iterator();
        Iterator value = map.values().iterator();

        while (key.hasNext() && value.hasNext()) {
            System.out.println("标识=" + key.next() + "，值=" + value.next());
        }

    }

}
